package com.eudon.design_pattern.structural.composite;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;

/**
 * @author eudon
 * @description 文件node
 * @date 2025/9/2
 * @email syd19970616@gmail.com
 * @address <a href="https://gitee.com/eudon">Gitee</a>
 */
public class File extends Node {

    public File(String path) {
        super(path);
    }

    @Override
    long count() {
        java.io.File files = new java.io.File(path);
        if (!files.exists()) {
            return 0;
        }
        return 1;
    }
}
